package com.java1412.controller;

import com.java1412.service.HelloService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author java1412
 * @since 2024-04-19 13:59:22
 */
@RestController
public class HelloController {

    // 注入service
    @Resource
    private HelloService helloService;

    @GetMapping(value = "/hi")
    public String hello(String name) {
        System.out.println("ribbon");
        return helloService.hello(name);
    }
}
